import { URL } from "./url";
import req from "./axiosFun";

export const createBike = (data) => {
  return req({ url: `${URL}/bicycle/bikes/create`, method: "post", data });
};

export const getBike = () => {
  return req({ url: `${URL}/bicycle/bikes/getBike` });
};

export const deleteBike = (params) => {
  return req({ url: `${URL}/bicycle/bikes/deleteBike/${params}` });
};

export const getScrapBike = () => {
  return req({ url: `${URL}/bicycle/bikes/scrapBike` });
};


export const updateBikeApi = (data) => {
  return req({ url: `${URL}/bicycle/bikes/update`, method: "post", data });
};
